import request from "@/utils/request";
export function insertRole(data) {
  return request({
    url: "/role/insert",
    method: "post",
    data: data
  });
}
export function updateRole(data) {
  return request({
    url: "/role/update",
    method: "post",
    data: data
  });
}
export function deleteRole(data) {
  return request({
    url: "/role/delete",
    method: "post",
    data: data
  });
}
export function deletesRole(data) {
  return request({
    url: "/role/deletes",
    method: "post",
    data: data
  });
}
export function enableRole(data) {
  return request({
    url: "/role/enable",
    method: "post",
    data: data
  });
}
export function enablesRole(data) {
  return request({
    url: "/role/enables",
    method: "post",
    data: data
  });
}
export function disableRole(data) {
  return request({
    url: "/role/disable",
    method: "post",
    data: data
  });
}
export function disablesRole(data) {
  return request({
    url: "/role/disables",
    method: "post",
    data: data
  });
}
export function viewRole(params) {
  return request({
    url: "/role/view",
    method: "get",
    params: params
  });
}
export function pageRole(params) {
  return request({
    url: "/role/page",
    method: "get",
    params: params
  });
}
export function searchRole(params) {
  return request({
    url: "/role/search",
    method: "get",
    params: params
  });
}
